package com.fivium.bpd.editor;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JSplitPane;

import com.fivium.bpd.component.BusinessProcessDefinition;

public class DelegationAssignmentPanel extends JPanel
{

  /**
   * Create the panel.
   */
  public DelegationAssignmentPanel(BusinessProcessDefinition bpd)
  {
    setLayout(new BorderLayout(0, 0));
    
    JSplitPane container = new JSplitPane();
    add(container);
    
    JSplitPane listContainer = new JSplitPane();
    listContainer.setResizeWeight(0.5);
    listContainer.setOrientation(JSplitPane.VERTICAL_SPLIT);
    container.setLeftComponent(listContainer);
    
    JPanel delegationListPanel = new DelegationListPanel();
    listContainer.setLeftComponent(delegationListPanel);
    
    JPanel assignmentListPanel = new AssignmentListPanel(bpd);
    listContainer.setRightComponent(assignmentListPanel);
    
    JPanel contentPanel = new AssignmentPanel();
    container.setRightComponent(contentPanel);

  }

}
